<template>
	<view class="index-page">
		<!-- 头部搜索框 -->
		<HeaderSearch :title="titleText" :titleImg="titleImgUrl"></HeaderSearch>
		<!-- 首页bannner大图 -->
		<image class="index-banner" src="../../static/index/index-banner.png"></image>
		<!-- 首页导航图标 -->
		<view class="index-navigate-icon">
			<view class="nav-icon">
				<image class="index-nav-img" src="../../static/index/gupiao.png"></image>
				<text class="index-nav-txt">股票</text>
			</view>
		</view>
	</view>
</template>

<script>
	import HeaderSearch from "../../components/header-search/header-search.vue";
	export default {
		data() {
			return {
				titleText: "首页",
				titleImgUrl: "../../static/index/index-add.png",
				
			};
		},
		components: {
			HeaderSearch,
		}
	}
</script>

<style lang="scss">
	.index-page {

		.index-banner {
			width: 702rpx;
			height: 240rpx;
			padding: 0 24rpx;
			margin-top: -140rpx;
			margin-bottom: 40rpx;
		}

		.index-navigate-icon {
			padding: 0 44rpx;
			display: flex;
			justify-content: space-between;
			.nav-icon{
				display: flex;
				flex-direction: column;
				align-items: center;
				.index-nav-img{
					width: 88rpx;
					height:88rpx;
					margin-bottom: 18rpx;
				}
				.index-nav-txt{
					font-size: 24rpx;
					color: #666;
				}
			}
		}
	}
</style>
